﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.DomainModels;

namespace VOL.Smartmanufacturing.IServices.ProcessesProcedure
{
    public  interface ICraftRouteServices
    {
        /// <summary>
        /// 新增工艺路线
        /// </summary>
        /// <param name="craftRoute">实体</param>
        /// <returns>返回受影响行数</returns>
        Task<int> AddCraftRoute(CraftRoute craftRoute);

        /// <summary>
        /// 修改工艺路线
        /// </summary>
        /// <param name="craftRoute">实体</param>
        /// <returns>返回受影响行数</returns>
        Task<int> UpdateCraftRoute(CraftRoute craftRoute);

        /// <summary>
        /// 删除工艺路线
        /// </summary>
        /// <param name="id">主键编号</param>
        /// <returns>返回受影响行数</returns>
        Task<int> DeleteCraftRoute(int id);

        /// <summary>
        /// 获取所有工艺路线信息
        /// </summary>
        /// <returns>集合</returns>
        ApiPaging<CraftRoute> GetCraftRouteList(int pageIndex, int pageSize);

        /// <summary>
        /// 获取所有工序管理信息
        /// </summary>
        /// <returns>集合</returns>
        IQueryable<CraftManagement> GetCraftManagementList();

    }
}
